<?php
foreach ($user_info as $_user_info) {
    ?>
    <div class="span8">
        <form method="post" class="form-horizontal">
            <legend>Đổi mật khẩu</legend>
            <div style="display: none" id="error" class="alert alert-error"></div>
            <div class="control-group">
                <label class="control-label">Mật khẩu cũ</label>
                <div class="controls">
                    <input type="hidden" value="<?php echo $_user_info["_id"] ?>" class="input-xlarge" id="id" name="id"/>
                    <input type="password" value="" class="input-xlarge" id="cur-password" name="cur-password" placeholder="Mật khẩu cũ" autocomplete="off"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Mật khẩu mới</label>
                <div class="controls">
                    <input type="password" value="" class="input-xlarge" id="password" name="password" placeholder="Mật khẩu mới" autocomplete="off"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Xác nhận mật khẩu mới</label>
                <div class="controls">
                    <input type="password" value="" class="input-xlarge" id="re-password" name="re-password" placeholder="Xác nhận mật khẩu mới" autocomplete="off"/>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label"></label>
                <div class="controls">
                    <!--<button class="btn btn-inverse" type="submit">Cập nhật</button>-->
                    <a id="update-pass" href="javascript:void(0);" class="btn btn-primary">Cập nhật</a>
                </div>
            </div>
        </form>
    </div>
<?php } ?>
<script type="text/javascript">
    $(document).ready(function() {
        $('#update-pass').click(function(){
            isChangePass('<?php echo DOMAIN ?>');
        });
    });
</script>